package me.stone.stanimeclient.core.common.extensions

import android.view.View
import android.view.ViewGroup

fun <T: View> T.detachParent() {
    val parent = parent as? ViewGroup
    parent?.removeView(this)
}